<template>
  <el-card
    shadow="never"
    header="四、经费预算明细表 （单位：万元））"
    :body-style="{ color: '#606266', lineHeight: 1.5 }"
  >
    <div v-for="(item, index) in data" :key="index">
      <vxe-form>
        <vxe-form-item>
          <template #default>
            经费来源: {{ item.budgetSaveReqVO.fundSource }}
          </template>
        </vxe-form-item>
        <vxe-form-item>
          <template #default>年份: {{ item.budgetSaveReqVO.year }}</template>
        </vxe-form-item>
        <vxe-form-item>
          部门: {{ item.budgetSaveReqVO.departmentId }}
        </vxe-form-item>
        <vxe-form-item>
          经济类型: {{ item.budgetSaveReqVO.fundTypeId }}
        </vxe-form-item>
      </vxe-form>
      <vxe-table
        border
        show-overflow
        :data="item.detailSaveReqVOS"
        :column-config="{ resizable: true }"
      >
        <vxe-column type="seq" width="60" />
        <vxe-column field="name" title="设备名称" />
        <vxe-column field="model" title="规格型号" />
        <vxe-column field="country" title="生产厂家·国别" />
        <vxe-column field="price" title="单价" />
        <vxe-column field="unit" title="单位" />
        <vxe-column field="num" title="数量" />
        <vxe-column field="free" title="费用" />
        <vxe-column field="use" title="用途" />
      </vxe-table>
    </div>
  </el-card>
</template>

<script setup>
  // import { useDictStore } from '@/store/modules/dict'

  // const dictStore = useDictStore()

  defineProps({
    data: {
      type: Array,
      default: () => [],
    },
  })

  // const options = ref([
  //   {
  //     budgetSaveReqVO: {
  //       fundSource: 'asfa',
  //       year: 'asdfa',
  //       departmentId: 'asfas',
  //       fundTypeId: 'asdfa',
  //     },
  //     detailSaveReqVOS: [
  //       {
  //         name: 'asfa',
  //         model: 'asfas',
  //         country: 'asdf',
  //         price: 'asdf',
  //         unit: 'asdf',
  //         num: 'asdf',
  //         free: 'af',
  //         use: '1',
  //       },
  //     ],
  //   },
  // ])
</script>

<style lang="scss" scoped></style>
